\n `;m.insertAdjacentHTML("afterend",y);const p=document.querySelector(".alert-wrapper"),$=document.querySelector(".alert-frame"),f=document.querySelector(".alert-close");if("question"===t){const t=document.querySelector(".confirm-button"),n=document.querySelector(".cancel-button");t.addEventListener("click",()=>{p.remove(),e("confirm")}),n.addEventListener("click",()=>{p.remove(),e()})}else{document.querySelector(".alert-button").addEventListener("click",()=>{p.remove(),e("ok")})}f.addEventListener("click",()=>{p.remove(),e("close")}),$.addEventListener("click",e=>{e.stopPropagation()})}),cuteToast=({type:e,title:t,message:n,timer:s=5e3,vibrate:o=[],playSound:a=null})=>new Promise(c=>{const r=document.querySelector("body"),l=document.getElementsByTagName("script");let i="";for(let e of l)e.src.includes("cute-alert.js")&&(i=e.src.substring(0,e.src.lastIndexOf("/")));let d=document.querySelector(".toast-container");d||(r.insertAdjacentHTML("afterend",'
\n
\n
\n
\n

'\n
\n ${t}\n ${n}\n
\n
X
\n
\n
\n
0&&navigator.vibrate(o),null!==a){new Audio(a).play()}setTimeout(()=>{b.remove(),c()},s);document.getElementById(`${u}-toast-close`).addEventListener("click",()=>{b.remove(),c()})}),id=()=>"_"+Math.random().toString(36).substr(2,9);